package com.kitchen.ui.dialog.com
{
	import com.kitchen.AbstractIcon;
	
	import flash.display.BitmapData;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class HeadBackIcon extends AbstractIcon
	{
		private static var bitdata:BitmapData=null;
		
		
		public function HeadBackIcon(bitmapData:BitmapData)
		{
			super(bitmapData);
		}
		
		override protected function cutRec(bitmapData:BitmapData):BitmapData{
			this.w = 225;
			this.h = 90;
			if(HeadBackIcon.bitdata == null){
				var headbg:BitmapData = new BitmapData(this.w, this.h);
				headbg.copyPixels(bitmapData, new Rectangle(470,445, this.w, this.h), new Point());
				HeadBackIcon.bitdata = headbg;
			}
			return HeadBackIcon.bitdata;
		}
	}
}